The legislation passed with 230 votes in the 300-seat chamber.
Formal negotiations are due to start in Athens on Friday.
Euro zone leaders will hold an emergency summit on Monday.